package com.yzr.test.entity;

import java.util.List;
import java.util.Objects;

public class Group {

    private Integer id;

    private Integer parentId;

    private String name;

    private List<Group> child;

    @Override
    public String toString() {
        return "Group{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", name='" + name + '\'' +
                ", child=" + child +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Group() {
    }

    public Group(Integer id, Integer parentId, String name) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public List<Group> getChild() {
        return child;
    }

    public void setChild(List<Group> child) {
        this.child = child;
    }
}
